package com.woniu.p2p.behindService;

import com.github.pagehelper.PageInfo;
import com.woniu.p2p.entity.Invest;
import com.woniu.p2p.entity.InvestComment;
import com.woniu.p2p.vo.InvestAndCommentVo;

import java.util.Date;
import java.util.List;

public interface CommentManagerService {

    //查询所有项目的评论
    PageInfo<InvestAndCommentVo> findAllInvestComment(Integer start, Integer num, String commentstatus, Date predate,Date nextdate,String commentkeyword);
    //导出所有贷后信息
    List<InvestAndCommentVo> findAllComments(int[] id);
    //根据id查询评论信息
    InvestComment findAllComment(int id);
    //根据id查询项目全部
    Invest findAllInvestById(int id);
    //查询全部项目
    List<Invest> findAllInvest();
    //增加评论
    int insertComment(InvestComment investComment);
    //删除单个评论s
    int deleteCommentById(int id);

    List<InvestComment> selectallcomment();
}
